import { Module } from '@nestjs/common'
import { StaffService } from './staff.service'
import { StaffController } from './staff.controller'
import { TypeOrmModule } from '@nestjs/typeorm'
import { Staff } from './entities/staff.entity'
import { Department } from '../department/entities/department.entity'
import { Job } from '../job/entities/job.entity'
import { WorkState } from '../work-state/entities/work-state.entity'
import { Admin } from '../admin/entities/admin.entity'
import { Contract } from '../contract/entities/contract.entity'
@Module({
  imports: [
    TypeOrmModule.forFeature([
      Staff,
      Department,
      Job,
      WorkState,
      Admin,
      Contract
    ])
  ],
  controllers: [StaffController],
  providers: [StaffService],
  exports: [StaffService]
})
export class StaffModule {}
